package com.starryx.driverschool.service;

import com.starryx.driverschool.po.Teacher;
import com.starryx.driverschool.vo.TeacherQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TeacherService {

    // 查询所有用户
    List<Teacher> listTeacher();

    // 分页查询所有用户
    Page<Teacher> listTeacher(Pageable pageable);

    // 分页查询所有用户
    Page<Teacher> listTeacher(Pageable pageable, TeacherQuery teacherQuery);

    // 保存
    Teacher saveTeacher(Teacher teacher);

    // 根据 id 查询
    Teacher getTeacher(Long id);

    // 根据 id 查询
    Teacher getTeacherByCarId(Long id);

    Teacher getTeacherByNo(String name);

    // 根据 id 修改
    Teacher updateTeacher(Long id, Teacher teacher);

    // 根据 id 删除
    void deleteTeacher(Long id);
}
